
<%@ page import="org.bjou.ShiroRole" %>
<!doctype html>
<html>
  <head>
    <meta name="layout" content="pertho">
  <g:set var="entityName" value="${message(code: 'shiroRole.label', default: 'ShiroRole')}" />
  <title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="twelve columns">
        <div class="box_c">

          <div class="box_c_heading cf">
            <p><g:message code="default.list.label" args="[entityName]" /></p>
          </div>
          <div class="box_c_content">

            <div id="list-shiroRole" class="content scaffold-list" role="main">
              <g:if test="${flash.message}">
                <div class="message" role="status">${flash.message}</div>
              </g:if>
              <table>
                <thead>
                  <tr>

                <g:sortableColumn property="name" title="${message(code: 'shiroRole.name.label', default: 'Name')}" />

                <g:sortableColumn property="roleDscp" title="${message(code: 'shiroRole.roleDscp.label', default: 'Role Dscp')}" />

                 <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <g:each in="${shiroRoleInstanceList}" status="i" var="shiroRoleInstance">
                  <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

                    <td><g:link action="show" id="${shiroRoleInstance.id}">${fieldValue(bean: shiroRoleInstance, field: "name")}</g:link></td>

                  <td>${fieldValue(bean: shiroRoleInstance, field: "roleDscp")}</td>

                    <td><g:link class="gh_button" action="rightMgn" id="${shiroRoleInstance.id}">权限</g:link></td>
                  </tr>
                </g:each>
                </tbody>
              </table>
              <div class="pagination">
                <g:paginate total="${shiroRoleInstanceTotal}" />
              </div>
              <g:form method="post" >
                <fieldset class="buttons">
                  <!--
                  <g:actionSubmit class="gh_button" action="create" value="新建" />
                  -->
                </fieldset>
              </g:form>
            </div>
          </div>
        </div>
      </div>
    </div>
</body>
</html>
